/**
 * ModuleService.java
 */
package org.yate.oa.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.dao.mapper.ModuleMapper;
import org.yate.oa.model.ModuleEntity;
import org.yate.oa.service.IModuleService;

/**
 * @author Yate
 * @date Nov 13, 2013
 * @description TODO
 * @version 1.0
 */
@Service
public class ModuleService extends BaseService<ModuleEntity, Long> implements IModuleService {

	@Resource(name = "moduleMapper")
	private ModuleMapper moduleDao; 
	
	/* 
	 * (non-Javadoc)
	 * @see org.yate.oa.service.imp.BaseService#getMapperDao()
	 */
	@Override
	protected IBaseMapperDao<ModuleEntity, Long> getMapperDao() {
		return this.moduleDao;
	}

    @Override
    public ModuleEntity getEntityBy(ModuleEntity e)
    {
        return this.moduleDao.getEntityBy(e);
    }

    @Override
    public List<ModuleEntity> getEntitiesAll()
    {
        return this.moduleDao.getEntitiesAll();
    }

}
